Filters the parameters used when generating the browse page for records (the model)
Note
Use the plural form of the <model>
array
$paramsParams passed to the browse query. May include both filtering and sorting parameters
None
class MyPlugin extends Omeka_Plugin_AbstractPlugin
{
protected $_filters = array('items_browse_params');
public function filterItemsBrowseParams($params)
{
//always sort by title instead of order
$params['sort_field'] = "Dublin Core,Title";
return $params;
}
}
modelbrowsesql
- :php
Omeka_Db_Table::getSelectForFindBy